<extend name='Public:layout' />
<block name='main-content'>	
	<div class="daohang">
		<ul>
			<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs"> 首页 </li>
			<li><button type="button" class="am-btn am-btn-default am-radius am-btn-xs">添加分类<a href="javascript: void(0)" class="am-close am-close-spin" data-am-modal-close="">×</a></button></li>
		</ul>
    </div>	
<div class="admin-biaogelist">
	
    <div class="listbiaoti am-cf">
      <ul class="am-icon-flag on"> 视频分类添加</ul>
      
      <dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > <a href="#">视频分类添加</a></dl>

    </div>
	
    <div class="fbneirong">
      <form class="am-form" action="__ACTION__" method="post">
        <div class="am-form-group am-cf">
          <div class="zuo">分类名称：</div>
          <div class="you">
            <input type="text" name="catename[]" class="am-input-sm" id="doc-ipt-email-1" placeholder="">
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo"><a href="javascript:" class="cate_level">添加以及分类</a></div>
        </div>
        <div class="am-form-group am-cf">
          <div class="you" style="margin-left: 35%;">
              <button type="submit" class="am-btn am-btn-success am-radius">添加</button>&nbsp;   &nbsp; <button type="reset" class="am-btn am-btn-secondary am-radius">重置</button>
          </div>
        </div>
      </form>
    </div>
</div>
<script>
$('.cate_level').live('click',function(){
    alert(1111);
      var html='<div class="am-form-group am-cf"><div class="zuo">分类名称：</div><div class="you"><input type="text" name="catename[]" class="am-input-sm" id="doc-ipt-email-1" placeholder=""></div></div><div class="am-form-group am-cf"><div class="you" style="margin-left: 35%;"><a href="javascript:" class="am-btn am-btn-success am-radius">删除</button></div></div>';
      $(this).parent().before(html);
});



</script>
</block>